#!/bin/sh
git remote set-url origin git@git.oschina.net:flashsword20/webmagic-bin.git
git remote add github git@github.com:code4craft/webmagic.git
mkdir -p bin/lib
git pull github master
mvn clean package
cp ./webmagic-samples/target/webmagic-0.2.0.jar ./bin/
rsync -avz --delete ./webmagic-samples/target/lib/ ./bin/lib/
git add .
git add -u
git cim "update jar"
git push
